package me.zhengjie.modules.repository;

import me.zhengjie.modules.domain.EnterpriseDic;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface EnterpriseDicMapper {

    int insertDic(EnterpriseDic dic);

    List<EnterpriseDic> selectDicForPage(Map<String,Object> map);

    int selectDicForPageByTotal(Map<String,Object> map);

    int deleteDic(EnterpriseDic dic);

    int updateDic(EnterpriseDic dic);

    List<EnterpriseDic> selectDicByType(String type);

    List<EnterpriseDic> selectDicByEnterId(Long id);

    int selectDicByValue(String value);
    //关联科技荣誉和企业信息
    int insertDicAndEnter(Long dicId,Long enterId);
    //解除关联科技荣誉和企业信息
    int deleteDicAndEnter(Long dicId,Long enterId);
}
